package org.dromara.web.controller.business;

import cn.dev33.satoken.annotation.SaIgnore;
import org.dromara.common.core.domain.R;
import org.dromara.common.log.annotation.Log;
import org.dromara.common.log.enums.BusinessType;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.dromara.dao.business.domain.Feedback;
import org.dromara.dao.business.domain.FeedbackQuery;
import org.dromara.dao.business.domain.Settings;
import org.dromara.dao.business.domain.bo.AppUpdateBo;
import org.dromara.dao.business.domain.vo.AppUpdateVo;
import org.dromara.web.controller.business.req.SettingReq;
import org.dromara.web.service.business.AppUpdateService;
import org.dromara.web.service.business.SettingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/appUpdate")
public class AppUpdateController extends BaseController {

    @Autowired
    AppUpdateService appUpdateService;

    @SaIgnore
    @GetMapping("/latest")
    public R<AppUpdateVo> list(AppUpdateBo appUpdateBo) {
        return R.ok(appUpdateService.getLatestInfo(appUpdateBo));
    }
}
